import service from '@/utils/request'


export const buildingApi = (id: number) => {
	return service.get('/new/new/building/' + id)
}

export const buildingListApi = () => {
	return service.get('/new/new/building/allList')
}

export const buildingSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/new/new/building', dataForm)
	} else {
		return service.post('/new/new/building', dataForm)
	}
}

export const communityBuildingListApi = (data: any) => {
	return service.post('/new/new/building/communityBuilding', data)
}


